package com.wy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author 王昭贵
 * @since 2023-01-14
 */
@Data
@ApiModel(value = "Pet对象", description = "")
public class Pet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("宠物名称")
    private String name;

    @ApiModelProperty("宠物种类")
    private String typeName;



    @ApiModelProperty("主人ID")
    private Integer customerId;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("照片")
    private String image;
    @ApiModelProperty("删除状态")
    private Integer deleteStatus;
    @ApiModelProperty("体重")
    private double weight;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String customerName;
    @TableField(exist = false)
    private String petType;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
